<?php
use Yaf_Config_Ini as Ini;
use Yaf_Registry   as Reg;
use Yaf_Loader     as Loader;
class Bootstrap extends Yaf_Bootstrap_Abstract {
    public function _init_(Yaf_Dispatcher $dispatcher) {
        $config = $dispatcher->getApplication()->getConfig();
        $loader = Yaf_Loader::getInstance();
        
        //reg config and database;
        Reg::set("config", $config);
        Reg::set('db_config',new Ini(CONFIG_PATH.'database.ini'));
        
        $model = new Model;
        Reg::set('model',$model);
    }
}